package com.hyzx.qbasic.admin.domain.service;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.dto.OrgTreeInfo;
import com.hyzx.qbasic.admin.model.po.OrgInfoPO;
import com.hyzx.qbasic.admin.model.po.OrgPO;
import com.hyzx.qbasic.admin.model.vo.req.admin.AddOrgReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.DeleteOrgReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.EditOrgReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.GetOrgListReq;
import com.hyzx.qbasic.admin.model.vo.res.BaseOperationRes;

import java.util.List;

/**
 * Created by 黄江华 on 2017/11/14
 */

public interface IOrgService {
    PageInfo<OrgInfoPO> getPagedOrgList(GetOrgListReq req);

    BaseOperationRes addOrg(AddOrgReq req);

    List<OrgTreeInfo> getOrgTreeList();

    BaseOperationRes deleteOrg(DeleteOrgReq req);

    OrgPO getOrgInfo(int orgId);

    BaseOperationRes editOrg(EditOrgReq req);

    Integer getUserOrgId(int userId);
}
